home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / emacssrc.zip / EMACSSRC.TAR / emacs-19.17 / vms / vmsdist.com < prev    next >
Text File  |  1992-11-12  |  3KB  |  123 lines

  1. $! Command file to build Emacs on VMS and create a backup saveset.
  2. $!
  3. $! Argument list
  4. $!   P1 (opt) name of the tape output device.
  5. $!
  6. $! History
  7. $!   rms, 16 May 1988
  8. $!     original version
  9. $!   rbr, 30 Oct 1992, roberts@nsrl31.nsrl.rochester.edu
  10. $!     modified to make this location independent.
  11. $!   
  12. $!
  13. $! We assume this file is in disk:[dir.emacs19.vms], where `disk' may be
  14. $! a concealed device name.  The default directory is moved to the location
  15. $! of this file, and the backup saveset will be contain disk:[dir...]*.*
  16. $!
  17. $! We also assume that the tar-tape reader has changed all `-' to `_'
  18. $! in filenames.  If this is not so, delete the first `@allrename' command.
  19. $!
  20. $! You must also edit the mag tape device name
  21. $! And the Emacs version that appears in the saveset name.
  22. $!
  23. $!
  24. $! Get a valid tape device name
  25. $!
  26. $ tape = p1
  27. $ prompt:
  28. $ if tape .eqs. ""
  29. $ then inquire tape "Tape device destination for distribution files" 
  30. $ endif
  31. $ if f$getdvi(tape,"EXISTS") .eqs. "FALSE" then goto prompt
  32. $ if f$getdvi(tape,"DEVCLASS") .ne. 2 then goto prompt
  33. $ if f$locate(":",tape) .eq. f$length(tape) then tape = tape + ":"
  34. $!
  35. $! Set the default directory to the root of the emacs distribution
  36. $!
  37. $ home = f$environment("DEFAULT")
  38. $ path = f$environment("PROCEDURE")
  39. $ path = f$extract(0,f$locate("]",path)+1,path)
  40. $ set default 'path'
  41. $!
  42. $! Change to VMS 4.4 filenames.
  43. $!
  44. $ @[.vms]allrename [...] "_" "-"
  45. $!
  46. $! Edit the configuration files.
  47. $!
  48. $ set default [-.src]
  49. $ copy vmspaths.h paths.h
  50. $ copy config.h-dist config.h
  51. $ edit/edt/nocommand config.h
  52. s/"@opsystemi@"/"[.s]vms4-4.h"/w
  53. s/"@machine@"/"[.m]vms.h"/w
  54. exit
  55. $!
  56. $! Compile, link and dump Emacs.
  57. $!
  58. $ @compile
  59. $ @link
  60. $ @[-.vms]complink
  61. $ @[-.vms]makedoc
  62. $ @build
  63. $!
  64. $! Move the executable and image to the appropriate place.
  65. $!
  66. $ rename temacs.exe  [-]emacs.exe
  67. $ rename temacs.dump [-]emacs.dump
  68. $ copy sys$library:vaxcrtl.olb vaxcrtl.olb
  69. $!
  70. $! Recompile a few files for vms version 4.2.
  71. $! Call these object files for 4.2 `.jbo'.
  72. $!
  73. $ edit/edt/nocommand config.h
  74. s/vms4-4/vms4-2/w
  75. exit
  76. $ rename doc.obj doc.obx
  77. $ rename fileio.obj fileio.obx
  78. $ rename sysdep.obj sysdep.obx
  79. $ rename vmsfns.obj vmsfns.obx
  80. $ 'ccom' doc
  81. $ 'ccom' fileio
  82. $ 'ccom' sysdep
  83. $ 'ccom' vmsfns
  84. $ rename doc.obj doc.jbo
  85. $ rename fileio.obj fileio.jbo
  86. $ rename sysdep.obj sysdep.jbo
  87. $ rename vmsfns.obj vmsfns.jbo
  88. $ rename *.obx *.obj
  89. $ delete config.h;-1
  90. $!
  91. $! Change all files back to the names that VMS 4.2 can read in.
  92. $!
  93. $ set default [-]
  94. $ @allrename [...] "-" "_"
  95. $!
  96. $! Set up the device name for the backup, assume we are located in [.vms]
  97. $! of the Emacs directory tree.
  98. $!
  99. $ olddef = f$environment("DEFAULT")
  100. $ path = f$environment("PROCEDURE")
  101. $ path = f$extract(0,f$locate("]",path)+1,path)
  102. $ set default 'path'
  103. $ set default [-.-]
  104. $ path = f$environment("DEFAULT")
  105. $ set default 'olddef'
  106. $ if f$parse(path,,,"DEVICE") .nes. f$parse(path,,,"DEVICE","NO_CONCEAL")
  107. $ then
  108. $   disk = f$parse(path,,,"DEVICE","NO_CONCEAL")
  109. $   disk = disk + f$parse(path,,,"DIRECTORY") - "]" + ".]"
  110. $ else
  111. $   disk = path - "]" + ".]"
  112. $ endif
  113. $!
  114. $! Dump onto tape.
  115. $!
  116. $ mount /foreign 'tape'
  117. $ define /translation=concealed dumping 'disk'
  118. $ set def dumping:[emacs]
  119. $ backup /interchange /verify /list [...] 'tape'emacs19.0
  120. $ dismount 'tape'
  121. $!
  122. $ set default 'home'
  123. $ exit